﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Store.Master" Inherits="System.Web.Mvc.ViewPage<NDepot.Models.UI.OrderInput>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="depot-form">

    <% using (Html.BeginForm("SaveOrder", "Store")) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Please Enter Your Details</legend>
                       
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Address) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Address) %>
                <%: Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.EMail) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.EMail) %>
                <%: Html.ValidationMessageFor(model => model.EMail) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PayType) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownListFor(model => model.PayType, (SelectListItem[])ViewData["PaymentType"], "--Please Select--")%>
                <%: Html.ValidationMessageFor(model => model.PayType) %>
            </div>
            
            <p>
                <input type="submit" value="Place Order" />
            </p>
        </fieldset>

    <% } %>
    </div>

</asp:Content>

